<%@ taglib prefix="for" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.util.*" pageEncoding="utf-8"  %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        body {
            font-size: 10pt;
        }
        .icon {
            margin:10px;
            border: solid 2px gray;
            width: 160px;
            height: 200px;
            text-align: center;
            float: left;
        }
    </style>
</head>
<body>
<for:forEach items="${requestScope.products}" var="pd">

    <div class="icon">
        <a href="<c:url value='/ProductServlet?method=load&pid=${pd.getPid()}'/>">
            <img src="${pd.getImgurl()}" width="160px" height="160px"/>
        </a><br/>
        <span>价格：${pd.getPrice()}</span><br>
        <a href="<c:url value='/ProductServlet?method=load&pid=${pd.getPid()}'/>">
            <span>描述：${pd.getPname()}</span>
        </a><br/>
    </div>
</for:forEach>

</div>
</body>
</html>